import request from '@/utils/request'

//获取投诉建议列表
export const getFeedbackListApi = (userName,status,page,pageSize) => request.get('/feedbacks', { params: { userName, status, page, pageSize } })

//新增投诉建议（用户端使用）
export const addFeedbackApi = (data) => request.post('/feedbacks', data)

//获取投诉建议详情
export const getFeedbackDetailApi = (id) => request.get(`/feedbacks/${id}`)

//修改投诉建议状态
export const updateFeedbackStatusApi = (id, status, processRemark) => request.put('/feedbacks', { id, status, processRemark })